//
//  Location.h
//  Weather-Test
//
//  Created by My Mac on 2017/4/30.
//  Copyright © 2017年 My Mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

//定义一个回调函数，用于传值
typedef void(^SaveLocation) (double lat,double lon,NSString *cityName);

@interface Location : NSObject<CLLocationManagerDelegate>
//声明一个定位服务属性
@property(nonatomic,strong) CLLocationManager *manager;

//声明回调函数属性
@property(nonatomic,strong) SaveLocation saveLocation;

//声明一个引用的类方法
+(void)getUserLocation:(SaveLocation)saveLocationBlock;

@end
